<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>支付成功</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <meta name="CMBNETPAYMENT" content="China Merchants Bank">
    <link href="../assets/mobile/comm.css" rel="stylesheet" type="text/css" />
	<link href="../assets/mobile/cartList.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="../assets/mobile/top.css">
	<link rel="stylesheet" href="../assets/agile/css/ratchet/css/ratchet.min.css">
<link rel="stylesheet" href="../assets/agile/css/flat/flat.component.css">
<link rel="stylesheet" href="../assets/agile/css/flat/iconline.css">
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/local.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
</head>
<body>
    <div class="h5-1yyg-v1">
<style>
.z-pay-tips s{
	margin:0 auto;
	display:block;
	float:none;
}
.g-pay-success{
	background:inherit;
}
.okp{font-size:14px;padding-left:12px;padding-right:12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow:ellipsis;}
</style>
<div id="ios-top-box">
    <div id="header" class="bar bar-nav">
    <div class="titlebar">
    <a href="javascript:;" id="teampaysuccess"><i class="iconfont iconline-arrow-left"></i></a>
    <h1 class="title">组团成功</h1>
    </div>
    </div>
</div>
        <div id="wrapper">
			<section id="shopResultBox" class="clearfix" style="margin-top:0px !important;">
            <div class="scroller create_ok">
            <img src="../image/create_ok.png" width="100%"/>
            
        <div class="block30"></div>

        <div style="width: 70%;border:1px solid #ccc;border-radius:3px;margin:0 auto;">
        <div class="block20"></div>
        <p class="okp groupname">团名称：</p>
        <p class="okp intcode">邀请码：</p>
        <div class="line_button" style="width:75%;margin:0 auto;">
            <button class="btn btn-positive btn1 wxshareBtn" style="margin:0 auto;display:block;width:45%;height:33px;">立即邀请</button>
            <button class="btn btn-positive btn1 qqshareBtn" style="float:right;width:45%;height:33px;display:none;">分享到QQ</button>
        </div>
        <div class="clear"></div>
        <div class="block10"></div>
        </div>
        
        </div>
			</section>
		</div>
    </div>
<script type="text/javascript" charset="utf-8">
apiready = function(){
   var teampaysuccess = document.getElementById('teampaysuccess');
   teampaysuccess.onclick = function(){
       localData.remove('share_data');
       api.closeWin({name:'teampaysuccess'});
   };
   var share_data = localData.get('share_data');
   var data = JSON.parse(share_data);
   $('.groupname').text('团名称：'+data['group_name']);
   $('.intcode').text('邀请码：'+data['create_pwd']);
  $(function(){
   $('.wxshareBtn').click(function(){
        var wx = api.require('wx');
            wx.isInstalled(function(ret, err){
                if(ret.installed){
                    wx.shareWebpage({
                        apiKey: config.wxpay.app_id,
                        scene: 'session',
                        title: '【'+data['group_name']+'】内部抢: '+data['share_title'],
                        description: data['share_desc'],
                        thumb:'widget://res/_r1_c1.png',
                        contentUrl: data['share_link'],
                    }, function(ret, err){
                        if(ret.status){
                            appToast('分享成功');
                        }else{
                            //
                        }
                    });
                }else{
                    api.alert({msg:'当前设备未安装微信客户端'});
                }
            });
   });
  });
   
};
apiready();
</script>
</body>
</html>